import request from '@/utils/request'

export function listData(query) {
  return request({
    url: `/reward/list${query}`,
    method: 'get',
  })
}

export function listPropData(query) {
  return request({
    url: `/reward/item/list${query}`,
    method: 'get',
  })
}

export function typeData(query) {
  return request({
    url: `/reward/detail/type/list${query}`,
    method: 'get',
  })
}

export function listTypeData() {
  return request({
    url: `/user-manager/user-gift-bag/select/list`,
    method: 'get',
  });
}

export function listSpecialData(form) {
  return request({
    url:`/mall/mall_product_list`,
    method:'post',
    data:form
  })
}

export function putData(form) {
  return request({
    url:`/reward/update`,
    method:'put',
    data:form
  })
}

export function putSendData(form) {
  return request({
    url:`/reward/send`,
    method:'put',
    data:form
  })
}



